<template>
  <div class="industryItem">
    <img v-if="( dataVal.smallPicUrl == '' ) || (dataVal.smallPicUrl == null)" src="https://img2.baidu.com/it/u=3666548066,2508071679&fm=26&fmt=auto">
    <img :src="smallPicUrl(dataVal.smallPicUrl)" alt="" v-else/>

    <div class="cont">
      <h3>{{dataVal.title}}</h3>
      <div class="content">
        {{dataVal.description}}
      </div>
      <div class="time"><i class="iconfont icon-shijian"></i> {{dataVal.createTime}}</div>
    </div>
  </div>
</template>
<script>

import baseConfig from "@/utils/config";
export default {
  props:{
    dataVal:{
      type:Object,
      default:{}
    }
  },
  methods:{

    smallPicUrl(url) {
      return baseConfig.dev + url;
    },

  }
};
</script>
<style lang="scss" scoped>
.industryItem {
  display: flex;
  background: #f9f9f9;
  box-shadow: 0px 0px 21px 0px rgba(17, 16, 16, 0.07);
  border-radius: 4px;
  margin-top: 10px;
  padding: 25px;

  width: 40%;

  img {
    width: 223px;
    height: 170px;
    border-radius: 4px;
  }
  .cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0 10px 20px;
    h3 {
      font-size: 18px;

      color: #333333;
    }
    .content {
      color: #a3a3a3;
      font-size: 14px;
      line-height: 24px;
    }
    .time {
      color: #a3a3a3;
      font-size: 12px;
      i {
        color: #a3a3a3;
        font-size: 12px;
      }
    }
  }
}
</style>
